package second;

public class Main {
    public static void main(String[] args) {
        Computer computer = new Computer();
        Television tv = new Television();
        WashMachine washMachine = new WashMachine();

        ComputeWeight[] items1 = {computer, tv, washMachine};
        ComputeWeight[] items2 = {computer, tv, washMachine, computer, washMachine, tv, tv};

        Truck truck1 = new Truck(items1);
        Truck truck2 = new Truck(items2);

        System.out.println(truck1.computeTotalWeight());
        System.out.println(truck2.computeTotalWeight());
    }
}
